class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column    :account ,:string
      t.column    :hashed_password ,:string
      t.column    :salt ,   :string
      t.column    :e_mail ,  :string
      t.column    :permission ,:int
      t.column    :punishment ,:datetime

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end
